import { useState } from "react";
import MyHooks from "./hooks/16_自定义hooks";
function App(){
    let [isShow,setShow] = useState(true)
    return <div>
        <h1>react-hooks</h1>
        {isShow&&<MyHooks/>}
        <button onClick={()=>{
            setShow(false)
        }}>切换</button>
    </div>
}

export default App;